﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace LDIFTestDataGenerator
{
    class LDIFBuilder
    {
        public String GenerateAnLDIFEntry(List<Attribute> attributes)
        {
            var sb = new StringBuilder();
            foreach (var val in attributes)
            {
                sb.Append(val.getName());
                sb.Append(": ");
                sb.Append(val.generateValue());
                sb.AppendLine();
            }
            sb.AppendLine("-");
            sb.AppendLine();
            return sb.ToString(); ;
        }

    }
}
